package com.ruoyi.vocationalmajor.service.impl;

import com.ruoyi.vocationalmajor.domain.ExamVocationalMajor;
import com.ruoyi.vocationalmajor.mapper.ExamVocationalMajorMapper;
import com.ruoyi.vocationalmajor.service.IExamVocationalMajorService;
import com.ruoyi.volunteermajor.domain.ExamVolunteerMajor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ExamVocationalMajorServiceImpl implements IExamVocationalMajorService {

    @Autowired
    private ExamVocationalMajorMapper vocationalMajorMapper;

    @Override
    public ExamVocationalMajor selectVocationalMajorById(Long id) {
        return vocationalMajorMapper.selectVocationalMajorById(id);
    }

    @Override
    public List<ExamVocationalMajor> selectVocationalMajorList() {
        return vocationalMajorMapper.selectVocationalMajorList();
    }

    @Override
    public List<ExamVocationalMajor> selectVocationalMajorListByCollegeId(Long collegeId) {
        return vocationalMajorMapper.selectVocationalMajorListByCollegeId(collegeId);
    }

    @Override
    public int insertVocationalMajor(ExamVocationalMajor vocationalMajor) {
        return vocationalMajorMapper.insertVocationalMajor(vocationalMajor);
    }

    @Override
    public int updateVocationalMajor(ExamVocationalMajor vocationalMajor) {
        return vocationalMajorMapper.updateVocationalMajor(vocationalMajor);
    }

    @Override
    public int deleteVocationalMajorById(Long id) {
        return vocationalMajorMapper.deleteVocationalMajorById(id);
    }
}
